package com.kevin.design.structuralPattern.adapter;

/**
 * 缺省适配器
 */
public class DefaultAdapter {
    public static void main(String[] args) {
        new Adapter22().p1();
    }
}
abstract class Adapter33 extends Adaptee11 implements Target11{

    @Override
    public void p1() {

    }

    @Override
    public void p2() {

    }
}

class Adapter22 extends Adapter33{
    @Override
    public void p1() {
        x1();
    }
}

interface Target11{
    void p1();
    void p2();
}

class Adaptee11{
    public void x1(){
        System.out.println("x1");
    }
    public void x2(){
        System.out.println("x2");
    }
}